import { IPSAppViewMsg } from '../../app/view/ipsapp-view-msg';
import { IPSModelObject } from '../../ipsmodel-object';
import { PSModelServiceProxyImpl } from '../../psmodel-service-proxy-impl';

export class PSAppViewMsgServiceProxy extends PSModelServiceProxyImpl {
  getPSModel4(
    relatedPSModelObject: IPSModelObject,
    cls: string,
    objNode: any,
    strTag: string,
  ): IPSModelObject {
    switch (strTag) {
      case 'getPSAppMsgTempl':
        return this.getPSAppMsgTempl(
          relatedPSModelObject as IPSAppViewMsg,
          objNode,
        );
    }
    return this.getRealPSModelService().getPSModel4(
      relatedPSModelObject,
      cls,
      objNode,
      strTag,
    );
  }

  getPSAppMsgTempl(_relatedPSModelObject: IPSAppViewMsg, obj: any): any {
    return this.app.findPSAppMsgTempl(obj);
  }
}
